<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <div>
            <button @click="type=1">看电影</button>
            <button @click="type=2">吃火锅</button>
            <button @click="type=3">看日出</button>
            <button @click="type=4">去爬山</button>
        </div>
    
        <div>
             <!-- v-show也是需要接收一个boolean 
                决定当前元素时display：none还是block -->
    
                <ul v-show="type===1">
                    <li>狗蛋</li>
                    <li>狗剩</li>
                    <li>狗碎</li>
                </ul>
                <ul v-show="type===2">
                    <li>二狗子</li>
                    <li>三傻子</li>
                    <li>四儿子</li>
                </ul>
                <ul v-show="type===3">
                    <li>小菜鸡</li>
                    <li>小趴菜</li>
                    <li>小六子</li>
                </ul>
                <ul v-show="type===4">
                    <li>奥特曼</li>
                    <li>海贼王</li>
                    <li>火影</li>
                </ul>
        </div>
    </div>

    <script>
        const vm = new Vue ({
            el: '#app',
            data() {
                return {
                    type: null 
                }
            }
        })
    </script>
</body>

</html>